<tagLib name="html" />

<include file="Public:header" />

<div class="container" id="cpcontainer">
    <form name="cpform" method="post" action="__URL__/save">
    <input type="hidden" name="category_id" value="{$rs.category_id}" />
    <table class="tb tb2">
        <tr>
            <th colspan="15" class="partition"><empty name="rs">{$Think.lang.add_new_category}<else/>{$Think.lang.edit_category} :: {$rs.name}</empty></th>    
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.category_name}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="name" value="{$rs.name}" type="text" class="txt" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <notempty name="pCateOptions">
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.parent_category}</td></tr>
        <tr>
            <td class="vtop rowform">
            <select name="parent">{$pCateOptions}</select>
            </td>
            <td class="vtop tips2"></td>
        </tr>
        </notempty>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.redirect_url}</td></tr>
        <tr>
            <td class="vtop rowform">
            <input name="redirect" value="{$rs.redirect}" type="text" class="txt" /></td>
            <td class="vtop tips2">{$Think.lang.redirect_url_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.category_image}</td></tr>
        <tr>
            <td class="vtop rowform">
            <input name="image" value="{$rs.image}" type="text" class="txt" /></td>
            <td class="vtop tips2">{$Think.lang.category_image_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.category_keywords}</td></tr>
        <tr>
            <td class="vtop rowform">
            <input name="keywords" value="{$rs.keywords}" type="text" class="txt" /></td>
            <td class="vtop tips2">{$Think.lang.category_keywords_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.category_description}</td></tr>
        <tr>
            <td class="vtop rowform">
            <textarea  rows="6" onkeyup="textareasize(this)" name="description" id="description" cols="50" class="tarea">{$rs.description}</textarea></td>
            <td class="vtop tips2">{$Think.lang.category_description_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.display_order}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="display_order" value="{$rs.display_order}" type="text" class="txt" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.display_category}</td></tr>
        <tr>
            <td class="vtop rowform">
                <html:radio name="status" radios="cateStatus" checked="cateStatusChecked" separator=" " />
            </td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="15"><div class="fixsel"><input class="btn" type="submit" value="{$Think.lang.submit}" /></div></td></tr>
    </table>
    </form>
</div>

<include file="Public:footer" />
